import { createApp } from 'vue'
import App from './App.vue'
// 初始化样式文件
import 'normalize.css'
import '@/assets/styles/common.less'

// 导入并挂载路由
import router from '@/router/index'

// pinia管理数据
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

// 导入全局注册组件
import XtxUI from '@/components/index'

const app = createApp(App)
app.use(XtxUI).use(router).use(pinia).mount('#app')
